<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui" template="template.xhtml">

	<ui:define name="head"></ui:define>
	<ui:define name="right"></ui:define>
	<ui:define name="content">
		<p:panel header="Login" visible="true" closable="false"
			draggable="false" resizable="false" width="420">
			<center>
				<h:outputText value="#{msgs.validacao_senha_incorreto}"
					rendered="#{param.erro}" style="color: darkred" />
			</center>
			<form action="j_spring_security_check" method="post">
				<h:panelGrid columns="2" cellpadding="5">
					<h:outputLabel for="j_username" value="#{msgs.form_login}: *" />
					<h:inputText id="j_username" required="true"
						styleClass="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" />
					<h:outputLabel for="j_password" value="#{msgs.form_senha}: * " />
					<h:inputSecret id="j_password" required="true"
						styleClass="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all" />
					<h:commandButton value="Login"
						styleClass="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />

				</h:panelGrid>
				<h:link value="#{msgs.recuperar_senha}"
					outcome="recuperar_senha.jsf" />
				|
				<h:link value="#{msgs.registrar_novo_usuario}"
					outcome="usuario_registrar.jsf" />
			</form>


		</p:panel>
		<div class="clearer"></div>
	</ui:define>

</ui:composition>